package com.project.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@FeignClient(url = "http://43.136.98.89:8888/" ,name = "promotion")
public interface PurchaseThemleafService {
    @RequestMapping("/promotional/getPromotional")
    String getPromotional(@RequestParam("request") HttpServletRequest request, @RequestParam("model")  Model model);
}
